

package com.yz.common.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


/**
 * 日志
 * 
 * @author yz

 *
 */
@TableName("tb_discover_log")
public class LogEntity implements Serializable {
	private long id;
	private String weather;
	private String pitNumber;
	private String earthColor;
	private String floor;
	private String depth;
	private String details;
	@NotNull(message = "创建时间不能为空")
	private Date createAt;
	private Date updateAt;
	@Min(value = 1,message = "type1勘探，2挖掘")
	@Max(value = 2,message = "type1勘探，2挖掘")
	private int type;
	@Min(value = 1,message = "请填写正确的项目id")
	private long projectId;
	@NotNull(message = "创建者不能为空")
	private String createUser;
	private Date deleteAt;

	public void setDeleteAt(Date deleteAt) {
		this.deleteAt = deleteAt;
	}

	public Date getDeleteAt() {
		return deleteAt;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setProjectId(long projectId) {
		this.projectId = projectId;
	}

	public long getProjectId() {
		return projectId;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getType() {
		return type;
	}

	public long getId() {
		return id;
	}

	public String getWeather() {
		return weather;
	}

	public String getFloor() {
		return floor;
	}

	public String getDepth() {
		return depth;
	}

	public String getDetails() {
		return details;
	}

	public void setId(long id) {
		this.id = id;
	}

	public void setWeather(String weather) {
		this.weather = weather;
	}

	public void setPitNumber(String pitNumber) {
		this.pitNumber = pitNumber;
	}

	public void setEarthColor(String earthColor) {
		this.earthColor = earthColor;
	}

	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}

	public void setUpdateAt(Date updateAt) {
		this.updateAt = updateAt;
	}

	public String getPitNumber() {
		return pitNumber;
	}

	public String getEarthColor() {
		return earthColor;
	}

	public Date getCreateAt() {
		return createAt;
	}

	public Date getUpdateAt() {
		return updateAt;
	}

	public void setFloor(String floor) {
		this.floor = floor;
	}

	public void setDepth(String depth) {
		this.depth = depth;
	}

	public void setDetails(String details) {
		this.details = details;
	}
}